<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />

</style>
<script src="jquery.min.js"></script>
<script type="text/javascript">
 $(document).ready(function() {
   $('#btn01').click(function() {
	 $('#content').empty();
     $.getJSON('http://210.118.64.169/db/get_latest_message.php',
	 function(data) {
		$.each(data, function(entryIndex, entry) {
			var html = '<h2>' + entry + '</h2>';
			html += '<h3>' + entryIndex + '</h3>';

			$('#content').append(html);
		});
     });
     return false;
   });
 });
</script>
</head>

<body>

<button id="btn01">get</button>
<div id="content"><p>it will show the latest message here</p></div>
</div>

</body>
</html>
